package com.bwda.dsrs.filecenter.domain.vo.fileapply;

import com.bwda.dsrs.filecenter.domain.vo.fileinfo.FileInfoVo;
import com.bwda.dsrs.filecenter.domain.vo.fileinfo.FileInfoVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author yangjun
 * @date 2019/4/10
 */
@Data
public class OutAuthVO {


    FileInfoVo fileInfoVO;

    @ApiModelProperty(value = "申请ID", required = true)
    private Integer applyId;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "阅读次数")
    private Integer readTimes;

    @ApiModelProperty(value = "1编辑2复制等，逗号隔开")
    private RightConfig rightConfig;
    @ApiModelProperty(value = "1明文水印2屏幕水印3暗水印4打印水印")
    private String waterType;
    @ApiModelProperty(value = "允许使用MAC，为空则不限制")
    private String allowMac;
    @ApiModelProperty(value = "允许使用IP，为空则不限制")
    private String allowIp;

    @ApiModelProperty(value = "文件密码，为空则无密码")
    private String filePwd;
    @ApiModelProperty(value = "0下载1邮件")
    private Integer sendType;
  @ApiModelProperty(value = "0dsrs,1exe")
    private Integer fileType;

    @ApiModelProperty(value = "邮件外发时，邮箱地址")
    private String emailAddr;


}

class RightConfig {
    @ApiModelProperty(value = "只读")
    private String onlyRead;
    @ApiModelProperty(value = "复制")
    private String copy;

    @ApiModelProperty(value = "编辑")
    private String edit;
    @ApiModelProperty(value = "另存")
    private String saveas;
    @ApiModelProperty(value = "打印")
    private String print;
    @ApiModelProperty(value = "截屏")
    private String cutScreen;
    @ApiModelProperty(value = "逾期删除")
    private String expireAutoDelete;
    @ApiModelProperty(value = "明文还原")
    private String restoreToOrign;

    @ApiModelProperty(value = "水印控制")
    private String waterConfig;

}
